using UnityEngine;
using System.Collections;

public class Ore : Boulder {
	
	
    public Ore():base(){
		
    }
	
	public void starterate(Material mat){
		material = mat;
		if ((material.GetType()).ToString() == "Aluminum"){
			ItemList.aluminumOre.Add(this);
			item.renderer.material = (UnityEngine.Material)UnityEngine.Resources.Load("Materials/Aluminum");
		} else if ((material.GetType()).ToString() == "Copper"){
			ItemList.copperOre.Add(this);
			item.renderer.material = (UnityEngine.Material)UnityEngine.Resources.Load("Materials/Copper");
		} else if ((material.GetType()).ToString() == "Iron"){
			ItemList.ironOre.Add(this);
			item.renderer.material = (UnityEngine.Material)UnityEngine.Resources.Load("Materials/Iron");
		} else if ((material.GetType()).ToString() == "Tin"){
			ItemList.tinOre.Add(this);
			item.renderer.material = (UnityEngine.Material)UnityEngine.Resources.Load("Materials/Tin");
		} else if ((material.GetType()).ToString() == "Zinc"){
			ItemList.zincOre.Add(this);
			item.renderer.material = (UnityEngine.Material)UnityEngine.Resources.Load("Materials/Zinc");
		} else {
			Debug.Log (material.GetType());
		}
		
	}
        
	// Use this for initialization
	void Start () {
		description = "This is a chunk of " + material.GetType().ToString() + " ore";
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
